import request from '@/utils/request'

// 查询其他物资列表
export function listMdOtherMaterial(query) {
  return request({
    url: '/meter/mdOtherMaterial/list',
    method: 'get',
    params: query
  })
}

// 查询其他物资详细
export function getMdOtherMaterial(otherMaterialId) {
  return request({
    url: '/meter/mdOtherMaterial/' + otherMaterialId,
    method: 'get'
  })
}

// 新增其他物资
export function addMdOtherMaterial(data) {
  return request({
    url: '/meter/mdOtherMaterial',
    method: 'post',
    data: data
  })
}

// 修改其他物资
export function updateMdOtherMaterial(data) {
  return request({
    url: '/meter/mdOtherMaterial',
    method: 'put',
    data: data
  })
}

// 删除其他物资
export function delMdOtherMaterial(otherMaterialId) {
  return request({
    url: '/meter/mdOtherMaterial/' + otherMaterialId,
    method: 'delete'
  })
}
